<local:DocumentBase x:Class="WPFExcelReport.TYTONAV95"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    MinHeight="200"
                    MinWidth="200"
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>

        <WD:TPRWD02  Grid.Row="2"  Grid.Column="0"  Grid.ColumnSpan="4" 
                       Name="cWD02"  
                       AUFART="K"
                       ARTST="F"  
                       IsOrder="False"
                       IsVV="False"/>

        <Grid Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="3*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <WD:TVKWD2PR    Grid.Column="0" 
                    Name="cWD"
                    IsEdit="{Binding IsEdit,ElementName=cWD02}"  
                    ORDERNUM="{Binding KEY,ElementName=cWD02}"   
                    WZCMD="UBTWV04"
                    />
            <TabControl Grid.Column="1">
                <TabItem Header="面料计划">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <AB:TAB05RZ  Grid.Column="0"  
                                     POSTYP="VA "
                                     Name="cRZ"
                                     IsAuto="{Binding IsAB,ElementName=cWD}" 
                                    />
                        <AB:TWAB55DI   Grid.Column="1"  
                                    POSTYP="DI "
                                     Name="cDI"
                                    IsAuto="{Binding IsAB,ElementName=cWD}"
                              />
                        <AB:TWAB45  Grid.Column="2"  
                                    POSTYP="VW "
                                    Name="cVW"
                                    IsAuto="{Binding IsAB,ElementName=cWD}"
                             />
                    </Grid>
                </TabItem>
                <TabItem Header="纱线">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <AB:TAB50TW    Grid.Column="0"
                            Visibility="Collapsed"
                                      Name="cBX"
                             />
                        <AB:TAB50XS    Grid.Column="1"  
                             POSTYP="XS "
                                       Name="cXS"
                             Visibility="{Binding IsGD,ElementName=TV,Converter={StaticResource nbv}}"/>

                        <AB:TAB50RV    Grid.Column="2" Grid.ColumnSpan="2" 
                                       Name="cCS"
                          IsGD="{Binding IsGD,ElementName=TV}"
                         />
                        <AB:TAB50RS  Grid.Column="3" Grid.ColumnSpan="2" 
                                     Name="cRS"
                          IsGD="{Binding IsGD,ElementName=TV}"
                         />
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
    </Grid>
</local:DocumentBase>
    
